package com.kiwilss.aliyundemo.dylist

import android.widget.ImageView
import coil.load
import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.viewholder.BaseViewHolder
import com.kiwilss.aliyundemo.R

/**
 * @author : Administrator
 * e-mail : kiwilss@163.com
 * time   : 2021/04/01
 *  desc   :
 */
class DyAdapter: BaseQuickAdapter<VideoInfoBean,BaseViewHolder>(R.layout.item_dy) {
    override fun convert(holder: BaseViewHolder, item: VideoInfoBean) {

        val ivPic = holder.getView<ImageView>(R.id.ivItemDyPic)
        ivPic.load(item.cover)

        holder.setText(R.id.tvItemDyTitle,item.title)
    }
}